<template>
  <div id="app">
      <UploadImagesCover
              :uploadImagesList="imagesObjectArray"
              @getData="getUploadImageList"
      />
  </div>
</template>

<script>
import UploadImagesCover from '@/components/UploadImagesCover'
export default {
  name: 'App',
    data () {
      return {
          imagesObjectArray: [ // 回显数据
           ]
      }
    },
  components: {
    UploadImagesCover
  },
    mounted () {
      this.imagesObjectArray = [
          {url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'},
          {url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}
      ]
    },
  methods: {
      // 获取轮播图
      getUploadImageList(data) {
          console.log('輪播圖數據')
          console.log(data)
      }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
